<template>
	<view class="w-100">
		<scroll-view scroll-y class="scroll-box" :style="'height:' + windowHeight + 'px;'">
			<view class="flex-1 mt-3 mx-4">
				<rich-text :nodes="onlineInfo" class="rich-text"></rich-text>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	import {
		onlinesetDetailUrl
	} from '@/api/index';
	export default {
		data() {
			return {
				windowHeight:'',
				onlineInfo: ''
			}
		},
		created() {
			this.$getScreenInfo().then(res => {
				this.windowHeight = res.windowHeight
				console.log(this.windowHeight);
			})
		},
		onLoad() {
			this.getAonlinesetDetail()
		},
		methods: {
			getAonlinesetDetail() {
				this.$R.get(onlinesetDetailUrl).then(res => {
					this.onlineInfo = res.data.income_method
					console.log(this.onlineInfo);
				})
			},

		}
	}
</script>

<style lang="scss">
	.scroll-box{
		width: 100%;
		background: linear-gradient(#E45825, #FF8255);
	}
	
	.rich-text {
		font-family: Arial, sans-serif;
		line-height: 2;
		color: #fff;
	}

	img {
		width: 100% !important;
		height: 100% !important;
	}
</style>